/*    */ package com.umeng.analytics.a;
/*    */ 
/*    */ import com.umeng.common.Log;
/*    */ import java.io.PrintWriter;
/*    */ import java.io.StringWriter;
/*    */ import java.io.Writer;
/*    */ import org.json.JSONObject;
/*    */ 
/*    */ public class d extends n
/*    */   implements g
/*    */ {
/*    */   public String a;
/* 21 */   private final String b = "context";
/*    */ 
/*    */   public d() {
/*    */   }
/*    */   public d(String paramString) {
/* 26 */     this.a = paramString;
/*    */   }
/*    */ 
/*    */   public d(Throwable paramThrowable) {
/* 30 */     this.a = a(paramThrowable);
/*    */   }
/*    */ 
/*    */   private String a(Throwable paramThrowable) {
/* 34 */     if (paramThrowable == null) {
/* 35 */       return null;
/*    */     }
/*    */ 
/* 38 */     String str = null;
/*    */     try
/*    */     {
/* 41 */       StringWriter localStringWriter = new StringWriter();
/* 42 */       PrintWriter localPrintWriter = new PrintWriter(localStringWriter);
/* 43 */       paramThrowable.printStackTrace(localPrintWriter);
/* 44 */       Throwable localThrowable = paramThrowable.getCause();
/* 45 */       while (localThrowable != null) {
/* 46 */         localThrowable.printStackTrace(localPrintWriter);
/* 47 */         localThrowable = localThrowable.getCause();
/*    */       }
/* 49 */       str = localStringWriter.toString();
/* 50 */       localPrintWriter.close();
/* 51 */       localStringWriter.close();
/*    */     } catch (Exception localException) {
/* 53 */       localException.printStackTrace();
/*    */     }
/* 55 */     return str;
/*    */   }
/*    */ 
/*    */   public boolean a() {
/* 59 */     if (this.a == null) {
/* 60 */       Log.b("MobclickAgent", "mContent is not initialized");
/* 61 */       return false;
/*    */     }
/*    */ 
/* 64 */     return super.a();
/*    */   }
/*    */ 
/*    */   public void a(JSONObject paramJSONObject)
/*    */   {
/* 70 */     if (paramJSONObject == null) return;
/*    */     try
/*    */     {
/* 73 */       this.g = paramJSONObject.getString("date");
/* 74 */       this.h = paramJSONObject.getString("time");
/*    */ 
/* 76 */       this.a = paramJSONObject.getString("context");
/*    */     }
/*    */     catch (Exception localException) {
/* 79 */       localException.printStackTrace();
/*    */     }
/*    */   }
/*    */ 
/*    */   public void b(JSONObject paramJSONObject)
/*    */     throws Exception
/*    */   {
/* 86 */     paramJSONObject.put("date", this.g);
/* 87 */     paramJSONObject.put("time", this.h);
/* 88 */     paramJSONObject.put("context", this.a);
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.analytics.a.d
 * JD-Core Version:    0.6.2
 */